<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>2025苏州社保计算器 - 会凌U</title>
    <style>
        * {
            box-sizing: border-box;
            margin: 0;
            padding: 0;
            font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
        }
        body {
            background-color: #f5f7fa;
            color: #333;
            padding: 15px;
            max-width: 500px;
            margin: 0 auto;
        }
        .header {
            display: flex;
            align-items: center;
            margin-bottom: 15px;
            padding-bottom: 15px;
            border-bottom: 1px solid #eee;
        }
        .brand-logo {
            width: 50px;
            height: 50px;
            border-radius: 8px;
            margin-right: 12px;
            background-color: #1a56db;
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-weight: bold;
        }
        .brand-text {
            flex: 1;
        }
        .brand-text h1 {
            font-size: 18px;
            color: #1a56db;
            margin: 0;
        }
        .brand-text p {
            font-size: 12px;
            color: #666;
            margin: 2px 0 0 0;
        }
        .calculator {
            background: white;
            border-radius: 12px;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
            padding: 20px;
            margin: 15px 0;
        }
        h2 {
            color: #1a56db;
            text-align: center;
            margin-bottom: 20px;
            font-size: 20px;
        }
        .input-group {
            margin-bottom: 15px;
        }
        label {
            display: block;
            margin-bottom: 8px;
            font-weight: bold;
            color: #4a5568;
        }
        input, select {
            width: 100%;
            padding: 12px;
            border: 1px solid #ddd;
            border-radius: 8px;
            font-size: 16px;
        }
        button {
            background-color: #1a56db;
            color: white;
            border: none;
            padding: 12px;
            border-radius: 8px;
            width: 100%;
            font-size: 16px;
            font-weight: bold;
            cursor: pointer;
            margin: 10px 0;
            transition: background-color 0.3s;
        }
        button:hover {
            background-color: #0d47a1;
        }
        .result {
            display: none;
            margin-top: 20px;
            background-color: #f0f7ff;
            padding: 15px;
            border-radius: 8px;
            border-left: 4px solid #1a56db;
        }
        .result h3 {
            color: #1a56db;
            margin-bottom: 15px;
            text-align: center;
        }
        .result-item {
            display: flex;
            justify-content: space-between;
            margin-bottom: 10px;
            padding-bottom: 10px;
            border-bottom: 1px dashed #ddd;
        }
        .result-item:last-child {
            border-bottom: none;
            font-weight: bold;
            color: #1a56db;
        }
        .increase {
            color: #e53e3e;
            font-size: 14px;
            margin-left: 10px;
        }
        .note {
            font-size: 12px;
            color: #718096;
            margin-top: 15px;
            line-height: 1.5;
        }
        .brand {
            text-align: center;
            margin-top: 20px;
            color: #4a5568;
            font-size: 14px;
            font-weight: bold;
        }
        .industry-info {
            background-color: #f8f9fa;
            padding: 10px;
            border-radius: 8px;
            margin-top: 5px;
            font-size: 12px;
            color: #6c757d;
        }
        .area-selector {
            display: flex;
            margin-bottom: 15px;
            background: #f8f9fa;
            border-radius: 8px;
            padding: 5px;
        }
        .area-option {
            flex: 1;
            text-align: center;
            padding: 10px;
            cursor: pointer;
            border-radius: 6px;
            transition: all 0.3s;
        }
        .area-option.active {
            background: #1a56db;
            color: white;
            font-weight: bold;
        }
        /* 新增的联系板块样式 */
        .contact-section {
            background: linear-gradient(135deg, #1a56db 0%, #0d47a1 100%);
            color: white;
            padding: 20px;
            border-radius: 12px;
            margin-top: 20px;
            text-align: center;
        }
        .qrcode-container {
            background: white;
            padding: 15px;
            border-radius: 8px;
            margin: 15px 0;
        }
        .qrcode-image {
            width: 150px;
            height: 150px;
            display: block;
            margin: 0 auto;
            border: 1px solid #eee;
        }
        .base-info {
            background-color: #e8f4ff;
            padding: 10px;
            border-radius: 8px;
            margin-top: 5px;
            font-size: 12px;
            color: #1a56db;
            border-left: 3px solid #1a56db;
        }
    </style>
</head>
<body>
    <div class="header">
        <div class="brand-logo">会凌U</div>
        <div class="brand-text">
            <h1>2025苏州社保计算器</h1>
            <p>专业财税服务 · 精准测算工具</p>
        </div>
    </div>
    
    <div class="calculator">
        <div class="area-selector">
            <div class="area-option active" onclick="selectArea('industry')">工业园区</div>
            <div class="area-option" onclick="selectArea('other')">市区及其他区域</div>
        </div>
        
        <div class="input-group">
            <label for="salary">员工月工资（元）</label>
            <input type="number" id="salary" placeholder="请输入月工资" value="4952">
            <div class="base-info">
                💡 2025年基数范围：4952元 - 24762元（2024年为4494元）
            </div>
        </div>
        
        <div class="input-group">
            <label for="industry">选择行业类别</label>
            <select id="industry" onchange="updateIndustryRate()">
                <option value="0.0016">一类行业（低风险） - 0.16%</option>
                <option value="0.004">二类行业 - 0.4%</option>
                <option value="0.007">三类行业 - 0.7%</option>
                <option value="0.009">四类行业 - 0.9%</option>
                <option value="0.011">五类行业 - 1.1%</option>
                <option value="0.02">六类行业 - 2.0%</option>
                <option value="0.016">七类行业 - 1.6%</option>
                <option value="0.019">八类行业（高风险） - 1.9%</option>
            </select>
            <div class="industry-info" id="industryInfo">
                一类行业示例：软件信息技术、金融服务、商务服务等
            </div>
        </div>
        
        <button onclick="calculate()">计算社保费用</button>
        
        <div id="result" class="result">
            <h3>2025年社保缴费计算结果</h3>
            <div class="result-item">
                <span>缴费基数</span>
                <span id="base-amount">4952.00 元</span>
            </div>
            <div class="result-item">
                <span>养老保险（单位16%）</span>
                <span id="pension-company">792.32 元</span>
            </div>
            <div class="result-item">
                <span>养老保险（个人8%）</span>
                <span id="pension-personal">396.16 元</span>
            </div>
            <div class="result-item">
                <span>医疗保险（单位<span id="medical-rate">5</span>%）</span>
                <span id="medical-company">247.60 元</span>
            </div>
            <div class="result-item">
                <span>医疗保险（个人2%）</span>
                <span id="medical-personal">99.04 元</span>
            </div>
            <div class="result-item">
                <span>失业保险（单位0.5%）</span>
                <span id="unemployment-company">24.76 元</span>
            </div>
            <div class="result-item">
                <span>失业保险（个人0.5%）</span>
                <span id="unemployment-personal">24.76 元</span>
            </div>
            <div class="result-item">
                <span>工伤保险（单位<span id="injury-rate">0.16</span>%）</span>
                <span id="injury-company">7.92 元</span>
            </div>
            <div class="result-item">
                <span>生育保险（单位0.8%）</span>
                <span id="maternity-company">39.62 元</span>
            </div>
            <div class="result-item">
                <span>大额医疗（个人）</span>
                <span id="medical-large">5.00 元</span>
            </div>
            <div class="result-item">
                <span>单位承担总计</span>
                <span id="total-company">1114.20 元 <span class="increase">(+103.05元)</span></span>
            </div>
            <div class="result-item">
                <span>个人承担总计</span>
                <span id="total-personal">524.96 元 <span class="increase">(+48.09元)</span></span>
            </div>
        </div>
        
        <div class="note">
            <p>注：</p>
            <p>1. 2025年苏州社保基数下限为4952元，上限为24762元（2024年为4494元）</p>
            <p>2. <strong>工业园区</strong>医疗保险单位比例2025年4月1日起从4%调整为<strong>5%</strong></p>
            <p>3. <strong>市区及其他区域</strong>（姑苏、吴中、相城、吴江、新区、常熟、张家港、昆山、太仓等）医疗保险单位比例仍为<strong>7%</strong></p>
            <p>4. 工伤保险行业费率按2025年新标准执行，浮动费率范围扩大至±50%</p>
            <p>5. 1-8月差额可于2025年12月31日前免滞纳金补缴</p>
            <p>6. 工资低于4952元按4952元基数计算，高于24762元按24762元计算</p>
        </div>
    </div>
    
    <div class="brand">
        <p>会凌U · 专业财税服务</p>
    </div>

    <!-- 新增的联系板块 - 已更新为您喜欢的话术 -->
    <div class="contact-section">
        <h3 style="margin-bottom: 15px;">📚 苏州小微企业主必看！</h3>
        <p style="margin-bottom: 15px; font-size: 14px; opacity: 0.9;">专心搞业务，把专业事交给专业人。扫码添加微信，持续获取最直白的财税科普干货，让企业经营更简单。</p>
        
        <div class="qrcode-container">
            <p style="color: #1a56db; font-weight: bold; margin-bottom: 10px;">扫码高效对接财税咨询,非诚勿扰!</p>
            <img src="https://gitee.com/huilingu/shebao/raw/master/wechat-qrcode.jpg" alt="会凌U财税专家微信" class="qrcode-image">
            <p style="color: #718096; font-size: 12px; margin-top: 10px;">微信: <strong>UB083H</strong></p>
        </div>
        
        <div style="font-size: 12px; opacity: 0.8;">
            <p>© 2025 会凌U · 专业财税服务</p>
        </div>
    </div>

    <script>
        // 当前选择的区域
        let currentArea = 'industry';
        
        // 行业类别描述
        const industryDescriptions = {
            "0.0016": "一类行业示例：软件信息技术、金融服务、商务服务等",
            "0.004": "二类行业示例：房地产、体育、娱乐业等",
            "0.007": "三类行业示例：农副食品加工、纺织、家具制造等",
            "0.009": "四类行业示例：造纸、化工、医药制造等",
            "0.011": "五类行业示例：炼焦、水泥制造、金属制品等",
            "0.02": "六类行业示例：建筑、有色金属矿采选、船舶制造等",
            "0.016": "七类行业示例：石油开采、煤炭开采等",
            "0.019": "八类行业示例：铁矿采选、非金属矿采选等"
        };
        
        function selectArea(area) {
            currentArea = area;
            document.querySelectorAll('.area-option').forEach(opt => {
                opt.classList.remove('active');
            });
            document.querySelector(`.area-option[onclick="selectArea('${area}')"]`).classList.add('active');
            calculate();
        }
        
        function updateIndustryRate() {
            const industrySelect = document.getElementById('industry');
            const industryInfo = document.getElementById('industryInfo');
            const selectedRate = industrySelect.value;
            industryInfo.textContent = industryDescriptions[selectedRate];
            calculate();
        }
        
        function calculate() {
            // 获取输入工资和行业费率
            let salary = parseFloat(document.getElementById('salary').value);
            const injuryRate = parseFloat(document.getElementById('industry').value);
            
            // 验证输入
            if (isNaN(salary) || salary <= 0) {
                alert('请输入有效的工资数额');
                return;
            }
            
            // 确定缴费基数（在下限和上限之间）
            const minBase = 4952;
            const maxBase = 24762;
            let base = salary;
            
            if (salary < minBase) {
                base = minBase;
            } else if (salary > maxBase) {
                base = maxBase;
            }
            
            // 确定医疗保险单位比例
            const medicalRate = currentArea === 'industry' ? 0.05 : 0.07;
            document.getElementById('medical-rate').textContent = medicalRate * 100;
            
            // 计算各项社保费用
            // 养老保险：单位16%，个人8%
            const pensionCompany = base * 0.16;
            const pensionPersonal = base * 0.08;
            
            // 医疗保险：单位比例可变，个人2%
            const medicalCompany = base * medicalRate;
            const medicalPersonal = base * 0.02;
            
            // 失业保险：单位0.5%，个人0.5%
            const unemploymentCompany = base * 0.005;
            const unemploymentPersonal = base * 0.005;
            
            // 工伤保险：按选择的比例
            const injuryCompany = base * injuryRate;
            
            // 生育保险：单位0.8%
            const maternityCompany = base * 0.008;
            
            // 大额医疗：个人固定5元
            const medicalLarge = 5;
            
            // 计算与去年的对比（基于4494元基数）
            const lastYearBase = 4494;
            const lastYearMedicalRate = currentArea === 'industry' ? 0.04 : 0.07;
            const lastYearInjuryRate = injuryRate; // 假设去年费率与今年相同
            
            const lastYearTotalCompany = lastYearBase * (0.16 + lastYearMedicalRate + 0.005 + lastYearInjuryRate + 0.008);
            const lastYearTotalPersonal = lastYearBase * (0.08 + 0.02 + 0.005) + 5;
            
            const totalCompany = pensionCompany + medicalCompany + unemploymentCompany + injuryCompany + maternityCompany;
            const totalPersonal = pensionPersonal + medicalPersonal + unemploymentPersonal + medicalLarge;
            
            const companyIncrease = totalCompany - lastYearTotalCompany;
            const personalIncrease = totalPersonal - lastYearTotalPersonal;
            
            // 更新结果显示
            document.getElementById('base-amount').textContent = base.toFixed(2) + ' 元';
            document.getElementById('pension-company').textContent = pensionCompany.toFixed(2) + ' 元';
            document.getElementById('pension-personal').textContent = pensionPersonal.toFixed(2) + ' 元';
            document.getElementById('medical-company').textContent = medicalCompany.toFixed(2) + ' 元';
            document.getElementById('medical-personal').textContent = medicalPersonal.toFixed(2) + ' 元';
            document.getElementById('unemployment-company').textContent = unemploymentCompany.toFixed(2) + ' 元';
            document.getElementById('unemployment-personal').textContent = unemploymentPersonal.toFixed(2) + ' 元';
            document.getElementById('injury-rate').textContent = (injuryRate * 100).toFixed(2);
            document.getElementById('injury-company').textContent = injuryCompany.toFixed(2) + ' 元';
            document.getElementById('maternity-company').textContent = maternityCompany.toFixed(2) + ' 元';
            document.getElementById('total-company').innerHTML = totalCompany.toFixed(2) + ' 元 <span class="increase">(+' + companyIncrease.toFixed(2) + '元)</span>';
            document.getElementById('total-personal').innerHTML = totalPersonal.toFixed(2) + ' 元 <span class="increase">(+' + personalIncrease.toFixed(2) + '元)</span>';
            
            // 显示结果区域
            document.getElementById('result').style.display = 'block';
        }
        
        // 页面加载时初始化
        window.onload = function() {
            updateIndustryRate();
            calculate();
        };
    </script>
</body>
</html>